import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  //这是resolve添加的别名
  resolve: {
    alias: {
      '@': '/src',
    },
    },
    server: {
      proxy: {
        '/login': "http://localhost:8080",
        '/user': "http://localhost:8080",
        '/admin': "http://localhost:8080",
    }
    }
})
